package org.lucky_common.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;

import java.io.Serializable;

@Data
public class UserExportVo implements Serializable {

    @Excel(name = "编号")
    private Long id;

    @Excel(name = "姓名   ")
    private String uname;

    @Excel(name = "省份")
    private String province;

    @Excel(name = "城市")
    private String city;

    @Excel(name = "详细地址")
    private String address;

    @Excel(name = "邮箱")
    private String email;

    @Excel(name = "手机号")
    private String mobile;

    @Excel(name = "邀请码")
    private String inviteCode;

    public static final ThreadLocal<Integer> threadLocal_collectionSize = new ThreadLocal<>();
    public static final ThreadLocal<Integer> threadLocal_insertIndex = new ThreadLocal<>();

    public Long getUsername() {
        Integer insertIndex = threadLocal_insertIndex.get();
        insertIndex++;
        threadLocal_insertIndex.set( insertIndex );
        return id;
    }
}
